package com.modernyuanshiren.withwinds;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.IntStream;

import com.modernyuanshiren.Element;
import com.modernyuanshiren.IElement;

public class WindGame1_36 extends CommonWindGame {

	@Override
	protected int[][] getMapDatas() {
		return new int[][] { { 0, 0, 0, 0, 0, 0, 0 },// 0
				{ 0, 0, -1, -1, -1, 0, 0 },// 1
				{ 0, -1, -1, -1, -1, -1, 0 },// 2
				{ 0, -1, -1, -1, -1, -1, 0 },// 3
				{ 0, -1, -1, -1, -1, -1, 0 },// 4
				{ 0, -1, -1, 0, -1, -1, 0 },// 5
				{ 0, 0, -1, -1, -1, 0, 0 },// 6
				{ 0, -1, -1, -1, -1, -1, 0 },// 7
				{ 0, 3, 3, 2, 3, 3, 0 },// 8
				{ 0, 3, 3, 2, 3, 3, 0 },// 9
				{ 0, 3, 3, 2, 3, 3, 0 },// 10
				{ 0, 0, 0, 1, 0, 0, 0 } // 11

		};
	}

	@Override
	protected List<IElement> getInitElements() {
		List<IElement> list = new ArrayList<>();
		list.add(new Element(CHARACTER_NAME, 3, 1));
		IntStream.range(0, 3).map(i -> 1 + i * 2)
				.forEach(j -> list.add(new Element(BOX_NAME, j, 3)));
		return list;
	}

	public static void main(String[] args) {
		CommonWindGame game = new WindGame1_36();
		game.start();
	}
}
